package chen.web.blog;

import java.util.List;

import chen.web.blog.Category.Position;

public interface CategoryManager {
	
	Category add(Category category);
	void delete(Category category);
	void update(Category category);
	List<Category> getRootCategories(Blog blog);
	Category get(Blog belong, int categoryId);
	
	/**
	 * 不能移动到自己的下级栏目
	 * @param cat
	 * @param pos
	 */
	void move(Category cat, Position pos);
}
